Modification start date
[BattleCats.git] / Assets / Scripts / Movement Scripts / LadderInteraction.cs
blob51c7e06e2117bcabbbcd7a50e486dee1381c3c75
1 using System.Collections;
2 using System.Collections.Generic;
3 using UnityEngine;
5 public class LadderInteraction : MonoBehaviour {
7 private void OnTriggerEnter2D(Collider2D other)
9 if (other.gameObject.CompareTag("Cat"))
11 other.gameObject.GetComponent<CatMovement>().SetOnLadder(true);
15 private void OnTriggerExit2D(Collider2D other)
17 if (other.gameObject.CompareTag("Cat"))
19 other.gameObject.GetComponent<CatMovement>().SetOnLadder(false);